import { Component } from 'react'
import { View, Text } from '@tarojs/components'
import {Async} from "utils"

import './index.scss'
import {GetUserInfo} from "../../api/GetUserInfo";
import {onShareAppMessage, withShareAppMessageRedirect} from "../redirect/onShareAppMessage";

@onShareAppMessage(withShareAppMessageRedirect())
export default class Index extends Component {

  componentWillMount () { }

  componentDidMount () {
    Async(async ()=> {
      await GetUserInfo("1410499877254836226")
    })
  }

  componentWillUnmount () { }

  componentDidShow () { }

  componentDidHide () { }

  render () {
    return (
      <View className='index'>
        <Text>Hello world!</Text>
      </View>
    )
  }
}
